package cn.org.rookie.mybatismapper.context;

import cn.org.rookie.mybatismapper.entiey.Table;

import java.util.concurrent.ConcurrentHashMap;

public class MapperContext {

    private final static ConcurrentHashMap<String, Table> context = new ConcurrentHashMap<>();

    public static Table get(String name) {
        return context.get(name);
    }

    public static void put(String name, Table table) {
        context.putIfAbsent(name, table);
    }

}
